/*
 * Filename: g:\espidf_workspace\idf_S3_T-Watch\main\include\lcd_gpio.h
 * Path: g:\espidf_workspace\idf_S3_T-Watch\main\include
 * Created Date: Tuesday, June 17th 2025, 10:49:23 am
 * Author: sss
 * 
 * Copyright (c) 2025 Your Company
 */
#ifndef _LCD_GPIO_H_
#define _LCD_GPIO_H_
#include "driver/gpio.h"


#define S3_T_WATCH 1
#if S3_T_WATCH

/* LCD size */
#define EXAMPLE_LCD_H_RES   (240)
#define EXAMPLE_LCD_V_RES   (240)

/* LCD settings */
#define EXAMPLE_LCD_SPI_NUM         (SPI3_HOST)
#define EXAMPLE_LCD_PIXEL_CLK_HZ    (40 * 1000 * 1000)
#define EXAMPLE_LCD_CMD_BITS        (8)
#define EXAMPLE_LCD_PARAM_BITS      (8)
#define EXAMPLE_LCD_COLOR_SPACE     (ESP_LCD_COLOR_SPACE_RGB)
#define EXAMPLE_LCD_BITS_PER_PIXEL  (16)
#define EXAMPLE_LCD_DRAW_BUFF_DOUBLE (1)
#define EXAMPLE_LCD_DRAW_BUFF_HEIGHT (10)
#define EXAMPLE_LCD_BL_ON_LEVEL     (1)
#define EXAMPLE_LCD_BL_OFF_LEVEL    (0)



/* LCD pins */
//s3 t-watch
#define EXAMPLE_LCD_MISO_PIN    (GPIO_NUM_NC)
#define EXAMPLE_LCD_GPIO_MOSI   (GPIO_NUM_13)
#define EXAMPLE_LCD_GPIO_SCLK   (GPIO_NUM_18)
#define EXAMPLE_LCD_GPIO_CS     (GPIO_NUM_12)
#define EXAMPLE_LCD_GPIO_DC     (GPIO_NUM_38)
#define EXAMPLE_LCD_GPIO_RST    (GPIO_NUM_NC)
#define EXAMPLE_LCD_GPIO_BL     (GPIO_NUM_45)
#endif //S3_T_WATCH


#define BREAD_BOARD_DEVICE 0
#if BREAD_BOARD_DEVICE
/* LCD size */
#define EXAMPLE_LCD_H_RES   (240)
#define EXAMPLE_LCD_V_RES   (240)
/* LCD settings */
#define EXAMPLE_LCD_SPI_NUM         (SPI3_HOST)
#define EXAMPLE_LCD_PIXEL_CLK_HZ    (40 * 1000 * 1000)
#define EXAMPLE_LCD_CMD_BITS        (8)
#define EXAMPLE_LCD_PARAM_BITS      (8)
#define EXAMPLE_LCD_COLOR_SPACE     (ESP_LCD_COLOR_SPACE_RGB)
#define EXAMPLE_LCD_BITS_PER_PIXEL  (16)
#define EXAMPLE_LCD_DRAW_BUFF_DOUBLE (1)
#define EXAMPLE_LCD_DRAW_BUFF_HEIGHT (10)
#define EXAMPLE_LCD_BL_ON_LEVEL     (1)

/* LCD pins */
#define EXAMPLE_LCD_GPIO_SCLK       (GPIO_NUM_14)
#define EXAMPLE_LCD_GPIO_MOSI       (GPIO_NUM_13)
#define EXAMPLE_LCD_GPIO_RST        (GPIO_NUM_12)
#define EXAMPLE_LCD_GPIO_DC         (GPIO_NUM_11)
#define EXAMPLE_LCD_GPIO_CS         (GPIO_NUM_10)
#define EXAMPLE_LCD_GPIO_BL         (GPIO_NUM_9)
#endif //BREAD_BOARD_DEVICE





#endif /* _LCD_GPIO_H_ */